﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userregister.aspx.cs" Inherits="userregister" %>

<%@ Register TagPrefix="header" TagName="header" Src="header.ascx" %>
<%@ Register TagPrefix="footer" TagName="footer" Src="footer.ascx" %>
<%@ Register TagPrefix="rightnotice" TagName="rightnotice" Src="right_notice.ascx" %>
<%@ Register TagPrefix="noticeland" TagName="noticeland" Src="noticeland.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户注册</title>
    <link rel="shortcut icon" href="images/logo/logoicon.ico" />
    <script type="text/javascript" src="js/sdc.js"></script>
    <link href="css/StyleSheet.css" rel="StyleSheet" type="text/css" />
    <link href="css/Login.css" rel="Stylesheet" type="text/css" />
    <link href="css/css.css" rel="Stylesheet" type="text/css" />
</head>
<body class="bodystyle">
    <form id="form2" runat="server">
    <div id="total_div">
        <header:header ID="header1" runat="server" />
        <div id="main_div">
            <div id="content_div">
                <div class="div001">
                    <div id="realcontent_div">
                        <div class="left_div">
                            <!--公告栏层-->
                            <noticeland:noticeland ID="noticeland" runat="server" />
                            <!--展现列表层-->
                            <div style="text-align: center; min-height: 1400px; padding:0 18px;" class=" W_nologin_main">
                                <div class="main_tab">
                                    <a class="current">用户注册</a>
                                </div>
                                <asp:Panel ID="Panel1" runat="server" CssClass="paneluserregister">
                                    <div>
                                        <table style="text-align: left;">
                                            <tr>
                                                <th><em>*</em>登录名：</th>
                                                <td>
                                                    <asp:TextBox ID="TextBox1" runat="server" CssClass="W_input"  CausesValidation="True"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="用户名不能为空" ValidationGroup="left" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="用户名已经存在" ValidationGroup="left" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" ValidationGroup="left" runat="server" ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="只能输入5-20个以字母开头、可带数字、“_”的字串" ValidationExpression="^[a-zA-Z]{1}([a-zA-Z0-9]|[_]){4,19}$"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>密码：</th>
                                                <td>
                                                    <asp:TextBox ID="TextBox3" runat="server" CssClass="W_input" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="left" ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="密码不能为空"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" ValidationGroup="left" runat="server" ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="密码格式有误" ValidationExpression="^[a-zA-Z]\w{5,17}$"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                                <td><span style="color: gray; ">密码以字母开头，长度在6~18之间，只能包含字符、数字和下划线</span></td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>确认密码：</th>
                                                <td>
                                                    <asp:TextBox ID="TextBox4" runat="server" CssClass="W_input"  TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ValidationGroup="left" ControlToValidate="TextBox4" ErrorMessage="确认密码不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ValidationGroup="left" ControlToCompare="TextBox3" ControlToValidate="TextBox4" ErrorMessage="密码不一致" Display="Dynamic"></asp:CompareValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>验证码：</th>
                                                <td>
                                                    <div style="position:relative;">
                                                    <asp:TextBox ID="txtCheckCode" CssClass="W_input" runat="server"></asp:TextBox>
                                                    <div style="position:absolute;left:133px; top:5px;">
                                                        <asp:Image ID="check_pic" ImageUrl="CheckCode.aspx" runat="server" /></div>
                                                    <asp:Label ID="lblMessage" runat="server" ForeColor="#FF3300" Visible="false" Text=""></asp:Label>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ValidationGroup="left"
                                                        ControlToValidate="txtCheckCode" ErrorMessage="验证码不能为空" Display="Dynamic"></asp:RequiredFieldValidator></div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>电子信箱：</th>
                                                <td>
                                                    <asp:TextBox ID="TextBox6" runat="server" CssClass="W_input" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="left"
                                                        ControlToValidate="TextBox6" ErrorMessage="邮箱地址不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationGroup="left"
                                                        ControlToValidate="TextBox6" ErrorMessage="邮箱地址非法" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>手机号码：</th>
                                                <td>
                                                    <asp:TextBox ID="TextBox7" CssClass="W_input" runat="server" ></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ValidationGroup="left"
                                                        ControlToValidate="TextBox7" ErrorMessage="手机号输入错误" ValidationExpression="(\d{11})">
                                                    </asp:RegularExpressionValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                                <td style="color:gray;">以下问题供取回密码时使用，请牢记</td>
                                            </tr>
                                            <tr>
                                                <th><em>*</em>提示问题：</th>                                           
                                                <td>
                                                    <asp:TextBox ID="TextBox11" CssClass="W_input" runat="server" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ValidationGroup="left"
                                                        ControlToValidate="TextBox11" ErrorMessage="提示问题不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>                                                
                                                <th><em>*</em>问题答案：</th> 
                                                <td>
                                                    <asp:TextBox ID="TextBox12" CssClass="W_input" runat="server" ></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="left"
                                                        ControlToValidate="TextBox12" ErrorMessage="问题答案不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <%--<tr>
                                                      <td>
                                                            <asp:Label ID="Label13" runat="server" Text="图片上传：" Width="94px"></asp:Label><input id="fileUp" type="file" runat="server"  />
                                                                &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
                                                            <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="上传" CausesValidation="False" CssClass="blueButtonCss" />
                                                      </td>
                                                  </tr>--%>
                                            <tr>
                                            <td>&nbsp;</td>
                                            <td>
                                                <asp:Button ID="Button1" runat="server" style="margin-top:18px;" CssClass="input-button login-btn reg-btn" ValidationGroup="left" OnClick="Button1_Click" UseSubmitBehavior="False" /></td>
                                            </tr>
                                        </table>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                        <!--右边广告层-->
                        <rightnotice:rightnotice ID="eduinfo1" runat="server" />
                    </div>
                </div>
            </div>
        </div>
        <footer:footer ID="footer1" runat="server" />
    </div>
    </form>
</body>
</html>
